import React from 'react';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
// import store from './01_Redux初始用/store';
import store from './02 redux-toolkit的使用/store';
// import App from './01_Redux初始用/App.jsx';
import App from './02 redux-toolkit的使用/App.jsx';
import { StoreContext } from './02 redux-toolkit的使用/hoc/storeContext.js';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // <React.StrictMode>
    <Provider store={store}>
      <StoreContext.Provider value={store}>
        <App />
      </StoreContext.Provider>
     </Provider>
  // </React.StrictMode>
);
